<script setup>
import { getCurrentInstance } from 'vue'
import { onLaunch } from '@dcloudio/uni-app'
import { useAppStore } from '@/stores/appStore'
import { useUserStore } from '@/stores/userStore'

const appStore = useAppStore()
const userStore = useUserStore()
const { proxy } = getCurrentInstance()

onLaunch(async () => {
    uni.hideTabBar({
        animation: false,
        fail() {}
    })
    await appStore.getSysConfig()
    await appStore.h5Intercepts()
    await userStore.getUserInfo()
    proxy.$isResolve()
})
</script>

<style lang="scss">
// #ifdef H5
* { touch-action: pan-y; }
// #endif
</style>
